#!/usr/bin/env bash

if [ $(date "+%H%M") -gt 0630 ]
then
    sh /home/marvin/realtime_job/job/before.sh
    sh /home/marvin/realtime_job/job/part1.sh >/home/marvin/realtime_job/logs/part1.log 2>&1 &
    sh /home/marvin/realtime_job/job/part2.sh >/home/marvin/realtime_job/logs/part2.log 2>&1 &
    sh /home/marvin/realtime_job/job/part3.sh >/home/marvin/realtime_job/logs/part3.log 2>&1 &
    sh /home/marvin/realtime_job/job/part4.sh >/home/marvin/realtime_job/logs/part4.log 2>&1 &
    wait
    echo 'job finish'
    echo `date`
fi